<template>
    <div id="my-massage" v-show="show">
        <div>{{msg}}</div>
    </div>
</template>

<script>
export default {
    name: '',
    props: {
        show: Boolean,
        msg: String
    }
}
</script>

<style scoped lang="scss">
#my-massage {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    z-index: 5;
    div{
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        width: 100px;
        height: 100px;
        padding: 20px;
        border-radius: 8px;
        line-height: 40px;
        text-align: center;
    }
}
</style>